package com.weiyuwqj.server.service.sys.impl;

import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.api.service.SysRoleResourceService;
import com.weiyuwqj.server.mapper.SysRoleResourceMapper;
import com.weiyuwqj.api.model.SysRoleResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zhangyong on 2016/7/20.
 */
@Service("roleResourceService")
public class SysRoleResourceServiceImpl extends BaseServiceImpl<SysRoleResource> implements SysRoleResourceService{

    @Autowired
    SysRoleResourceMapper roleResourceMapper;

    @Override
    public List<SysRoleResource> getOneByRoleId(Integer roleId) {
        return roleResourceMapper.getOneByRoleId(roleId);
    }

    @Override
    public void delByRoleId(Integer roleId) {
        roleResourceMapper.delByRoleId(roleId);
    }
}
